package com.anrong.wulansdk;

import com.anrong.wulansdk.sdk.db.LiteOrmDBUtil;
import com.anrong.wulansdk.sdk.entity.UploadInfo;
import com.anrong.wulansdk.sdk.service.UploadService;
import com.anrong.wulansdk.sdk.utils.MyLogcat;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;


public class TestService extends Service{

	private IBinder binder = new MyBinder();
	
	
	@Override
	public IBinder onBind(Intent intent) {
		return binder;
	}

	@Override
	public void onCreate() {
		
		long count = LiteOrmDBUtil.getCount(UploadInfo.class);
		
		MyLogcat.log("1111111111111111111111111111111111: "+count);
		
		super.onCreate();
	}
	
	
	public class MyBinder extends Binder{
		public TestService getService(){
			return TestService.this;
		}
	}
	
	public void show(){
		MyLogcat.log("sssssssssssssssssssss");
	}
	
}
